<?php $userinrole = $this->userinrole; ?>

<?php if(is_array($userinrole)): ?>
	<table>
		<tr>
			<th>
				Username
			</th>
			<th>
				Full name
			</th>
			<th>
				Role
			</th>
			<th>
				
			</th>
		</tr>

	<?php foreach ($userinrole as $uir):?>
		<tr>
			<td><?php echo $uir['username']; ?></td>
			<td><?php echo $uir['fullname']; ?></td>
			<td><?php echo $uir['role_name']; ?></td>
			<td>
				<a href="<?php echo $this->url('user/process', array('controller' => 'userinrole', 'action' => 'update'), array('query' =>  array('id' => $uir['uid'])) ); ?>">Update</a> | 
				<a href="<?php echo $this->url('user/process', array('controller' => 'userinrole', 'action' => 'reset'), array('query' =>  array('id' => $uir['uid'])) ); ?>">Reset</a>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>